package com.example.tasks

import java.io.File

const val BLACK = -16777216
private val alphaMask40: Int = 0x66FFFFFF

/*sealed class AvatarSku(val id: String, val priceLevel: Byte, val imageCount: Short) {
    class Level1 : AvatarSku("ai_images_small", 0.toByte(), 50)
    class Level2 : AvatarSku("ai_images_medium", 1.toByte(), 100)
    class Level3 : AvatarSku("ai_images_large", 2.toByte(), 200)
}*/


fun main() {
    println(Runtime.getRuntime().availableProcessors())
    val s: CharSequence = "a,b,c,d"
    val list: List<String> = s.split(Regex(","), 2)
    list.forEachIndexed { index, s ->
        println("$index->$s")
    }
}

/*@OptIn(FlowPreview::class)
fun main() = runBlocking{

    flow<Int> {
        for (i in 0..10) {
            emit(i)
            delay(110)
        }
    }.sample(200).collect { it ->
        println(it)
    }
}*/
